public class HW1PS3{
	public static void main(String[] args){
	
		for(int i = 0; i < 24; i++){
			System.out.println("");
			// change to next line after one iteration of the inner loop 
			for (int j = 0; j< 24; j++){
			// deal with the first first line first.
				if (i == 0){
					if (j <= 9){
					System.out.print(""+j+ "  ");
				}
				else{
					int num = 87+j;
					System.out.print((char)num + "  ");
					}
				}
			// rest of the line
				else{
				// first element to be outer loop's number
				if (i <= 9 && j == 0){
					System.out.print(""+i+ "  ");
				}
				else if (i > 9 && j == 0){
					int num = 87+i;
					System.out.print((char)num + "  ");
					}
				// other than the first element, it should be +  
				else{
					System.out.print("+  ");
				}

				}}
					
			}
			
		}
		
	}
	
